package com.jhhc.Weathers.Picture.Service.ImplService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jhhc.Weathers.Picture.Dao.BDMS_UD_PICTURE_CMapper;
import com.jhhc.Weathers.Picture.Pojo.BDMS_UD_PICTURE_C;
import com.jhhc.Weathers.Picture.Service.BDMS_UD_PICTURE_CService;

@Service
public class BDMS_UD_PICTURE_CServiceImpl implements BDMS_UD_PICTURE_CService{
	
	@Autowired
	private BDMS_UD_PICTURE_CMapper BDMS_UD_PICTURE_CMapper;


	@Override
	public List<BDMS_UD_PICTURE_C> selectByClassID(String productType,String datasourceType) {
		// TODO Auto-generated method stub
		return BDMS_UD_PICTURE_CMapper.selectByClassID(productType,datasourceType);
	}

	@Override
	public BDMS_UD_PICTURE_C selectByClassIDs(String productSource, String productType, String pictureType,String datasourceType) {
		if (productSource.equals(productType)) {
			return BDMS_UD_PICTURE_CMapper.selectByClassIDs2(productSource, pictureType,datasourceType);
		}else {
			return BDMS_UD_PICTURE_CMapper.selectByClassIDs(productSource, productType, pictureType,datasourceType);
		}
	}

	
	
	

}
